package com.leyou.user.service;


import com.leyou.user.dto.AddressDTO;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author: wangzibeng
 * Date: 2019/5/20 0020
 * Time: 14:28
 */

public interface AddressService {
    /**
     * 查询用户的地址
     *
     * @param uid 登录用户id
     * @return 多个地址
     */
    List<AddressDTO> queryAddresses(Long uid);

    /**
     * 根据 uid 和 地址Id查询 地址
     *
     * @param uid 用户id
     * @param id  地址id
     * @return address
     */
    AddressDTO queryAddressByUidAndId(Long uid, Long id);
}
